SlaveDiagnostics Class

Represents the diagnostics information of EtherCAT slaves' state. For further details, see KINGSTAR Analysis Console > Diagnostic Tool.

Inheritance Hierarchy

System.Object
  IntervalZero.KINGSTAR.Base.Api.SlaveDiagnostics

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
public class SlaveDiagnostics
Public Class SlaveDiagnostics

 

The SlaveDiagnostics class exposes the following members.

Constructors

 NameDescription
SlaveDiagnosticsInitializes a new instance of the SlaveDiagnostics class.

Properties

 NameTypeDescription

Available State(s)

AbnormalStateUINTThe number of times the slave leave its state autonomously to a lower state without the master requests.

>= Offline

AlControlUSHORTControls the EtherCAT state machine.

>= Init

AlStatusUSHORTThe EtherCAT state plus an alarm bit.

>= Init

AlStatusCodeUSHORTAL Status Code. It displays the error code that indicates last time the problem the slave ran into.

>= Init

CyclicWcUINTThe number of cycles the datagram which is responsible for processing data exchange of the slave was received back with an invalid working counter.

OP

DeviceTypeUINTThe device type of the slave.

>= Init

DlStatusUSHORTThe EtherCAT loop state of each port.

OP

FixedAddressUSHORTThe fixed address of the slave. Set by the master during startup. Values start at 1001 and follow the link order.

>= Init

FlagsBYTEProvides additional topology information about the slave.

>= Init

FrameCrcBYTE

The Ethernet frame error count for each port.

Error: an interference on the cable corrupts bits in the frame.

OP

LinkConnControlBYTEThe value of the register 0x0101 of a slave.

OP

LinkConnStatusBYTEReports the actual link state on each port of slave. The processing order is port 0→3→1→2.

>= Init

LinkPresetBYTEReports the expected physical link on ports 1, 2, and 3 of a slave. The processing order is port 0→3→1→2.

>= Init

LinkStatusBYTEThe EtherCAT link of a slave.

>= Init

LostLinkBYTE

Lost link count for each port. EtherCAT devices increment a Lost Link Counter in case of loss of physical link with neighboring devices.

Error: the cable is faulty.

OP

MailboxInUSHORTThe size of the slave's input mailbox buffer. 128 - 512 bytes are moderate. The size under 32 bytes is small.

>= Init

MailboxOutUSHORTThe size of the slave's output mailbox buffer. 128 - 512 bytes are moderate. The size under 32 bytes is small.

>= Init

NamecharThe name of the slave.

>= Init

NotPresentUINTThe number of times the master lost the physical link with the slave.

>= Offline

PhyCrcBYTE

The physical layer communication error count for each port.

Error: the cable is unplugged.

OP

PortAddressUSHORTThe fixed address of the device expected connected to each port.

>= Init

ProductCodeUINTThe product code of the slave.

>= Init

RevisionNoUINTThe revision number of the slave.

>= Init

SerialNoUINTThe serial number of the slave.

>= Init

StationAddressUSHORTCommonly called Alias address. It can be written by the master and is stored in the slave EEPROM. This value is kept when powering off and can be used to differentiate identical slaves.

>= Init

TypecharThe device type of the slave.

>= Init

VendorIdUINTThe vendor ID of the slave.

>= Init

 

NOTE:  The SlaveDiagnostics data is returned by GetStatus or GetStatusEx only at certain state(s) shown in the above "Available State(s)" column.

 

All the EtherCAT states and their transition order are listed below:

  1. Offline → Init → Pre-Operational (PreOP) → Safe-Operational(SafeOP) → Operational (OP)

  2. Offline → Init → Boot

For more information about all the states, please refer to EthercatState enumeration.

See also

IntervalZero.KINGSTAR.Base.Api Namespace